<?php
	include 'DBController.php';

	$wordId = $_GET['wordId'];
	$word = $_GET['word'];
	$slug = $_GET['slug'];
	$isUpdate = $_GET['isUpdate'];
	$category = $_GET['category'];
	$mainWord = new MainWord();
	
	$mainWord->setWordId($wordId);
	$mainWord->setContent($word);
	$mainWord->setSlug($slug);
	$mainWord->setWordIndex($isUpdate);
	$mainWord->setCategory($category);
	$mainWord = updateMainWord($mainWord);
	
?>